package com.example.xpvideo.entity;

import io.swagger.models.auth.In;

/**
 * @author : 洪俊新
 * @date : 2021/2/26 18:27
 * @description:
 */
public class PageResult1<T> {
    /**
     * 总数
     */
    private Long count;
    /**
     * 共有几页
     */
    private Integer totalPages;
    /**
     * 当前页数据数量
     */
    private Integer pageSize;
    /**
     * 当前页数
     */
    private Integer currentPage;
    /**
     * 数据模板
     */
    private T data;

    private Integer allCount;
    private Integer newCount;


    public PageResult1(Long count,
                       Integer allCount,
                       Integer newCount,
                       Integer totalPages,
                       Integer pageSize,
                       Integer currentPage,
                       T data) {
        this.count = count;
        this.allCount = allCount;
        this.newCount = newCount;
        this.totalPages = totalPages;
        this.pageSize = pageSize;
        this.currentPage = currentPage;
        this.data = data;
    }
    public Integer getAllCount() {
        return allCount;
    }

    public void setAllCount(Integer allCount) {
        this.allCount = allCount;
    }

    public Integer getNewCount() {
        return newCount;
    }

    public void setNewCount(Integer newCount) {
        this.newCount = newCount;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
